package com.smart.model.dtomapper;

import com.smart.model.domain.OperateRoleDO;
import com.smart.model.request.OperateRoleRequest;
import com.smart.model.vo.OperateRoleVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface OperateRoleDtoMapper {

    OperateRoleDtoMapper INSTANCE = Mappers.getMapper(OperateRoleDtoMapper.class);

    /**
    * DO to VO
    * @param operateRoleDO
    * @return
    */
    OperateRoleVO do2VO(OperateRoleDO operateRoleDO);

    /**
     * reuest to DO
     * @param request
     * @return
     */
    OperateRoleDO request2DO(OperateRoleRequest request);
}
